<div ng-controller="applyCtrl">


  <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
           <!-- <div class="widget-header bordered-bottom bordered-themeprimary">
                <i class="widget-icon fa fa-tasks themeprimary"></i>
                <span class="widget-caption themeprimary">申请记录</span>
            </div> -->
            <div class="widget-body no-padding">
                <div class="task-container">
                  <div class="task-search" style="display:flex;justify-content: space-between;">
                      <div class="task-check" style="display:inline-block;line-height:32px;">
                          <label>
                              <input type="checkbox" ng-model='selectall'>
                              <span class="text">全选</span>
                          </label>
                      </div>
                      <div  style="display:inline-block;line-height:32px;">
                        <!-- <span ng-click="setRead()" style="cursor:pointer;margin-right:12px;">标记为已读</span> -->
                        <span ng-click="delNews()" style="cursor:pointer;">删除申请记录</span>
                      </div>
                  </div>
                    <ul class="tasks-list">
                        <li class="task-item" ng-repeat="x in applications">
                            <div class="task-check">
                                <label>
                                    <input type="checkbox" name="delcheckbox" ng-value='x.id' ng-checked='selectall' />
                                    <span class="text"></span>
                                </label>
                            </div>
                            <div class="task-state" ng-if="!x.dealStatus">
                                <span class="label label-yellow">
                                    等待审批
                                </span>
                            </div>
                            <div class="task-state" ng-if="x.dealStatus && !x.dealresult">
                                <span class="label label-orange">
                                    申请被驳回
                                </span>
                            </div>
                            <div class="task-state" ng-if="x.dealStatus && x.dealresult">
                                <span class="label label-palegreen">
                                    申请通过
                                </span>
                            </div>
                            <div class="task-time">发送时间：{{x.sendDate}}</div>
                            <div class="task-body">{{x.info}}</div>
                            <div class="task-creator"><a href="">申请时间段：{{x.dateRange}}</a></div>
                            <div class="task-assignedto">发送给：{{x.receiver}}</div>
                        </li>
                    </ul>
                </div>
            </div><!--Widget Body-->
        </div>

    </div>




</div>
